$(".tijiao").eq(0).on("click",function(){
	if($("#shouji_name").val() != "" && $("#shouji_phone").val() !=""){
		//表示填写正确
		$.ajax({
			url:"http://127.0.0.1/160303/徐峥/后台/提交.php",
			type:"get",
			data:{
				"type": "0" ,
				"name":$("#shouji_name").val(),
				"phone":$("#shouji_phone").val()
			},
			success:function(data){
				alert($.parseJSON(data));
			}
		});
	}else{
		alert("不能为空");
	}
});
$(".tijiao").eq(1).on("click",function(){
	if($("#dianying_name").val() != "" && $("#dianying_phone").val() !=""){
		//表示填写正确
		$.ajax({
			url:"http://127.0.0.1/160303/徐峥/后台/提交.php",
			type:"get",
			data:{
				"type": "1" ,
				"name":$("#dianying_name").val(),
				"phone":$("#dianying_phone").val()
			},
			success:function(data){
				alert($.parseJSON(data));
			}
		});
	}else{
		alert("不能为空");
	}
});
$(".tijiao").eq(2).on("click",function(){
	if($("#chongdian_name").val() != "" && $("#chongdian_phone").val() != ""){
		//表示填写正确
		$.ajax({
			url:"http://127.0.0.1/160303/徐峥/后台/提交.php",
			type:"get",
			data:{
				"type": "2" ,
				"name":$("#chongdian_name").val(),
				"phone":$("#chongdian_phone").val()
			},
			success:function(data){
				alert($.parseJSON(data));
			}
		});
	}else{
		alert("不能为空");
	}
});
$(".tijiao").eq(3).on("click",function(){
	if($("#erji_name").val() != "" && $("#erji_phone").val() !=""){
		//表示填写正确
		$.ajax({
			url:"http://127.0.0.1/160303/徐峥/后台/提交.php",
			type:"get",
			data:{
				"type": "1" ,
				"name":$("#erji_name").val(),
				"phone":$("#erji_phone").val()
			},
			success:function(data){
				alert($.parseJSON(data));
			}
		});
	}else{
		alert("不能为空");
	}
});
$(".tijiao").eq(4).on("click",function(){
	if($("#qianming_name").val() != "" && $("#qianming_phone").val() !=""){
		//表示填写正确
		$.ajax({
			url:"http://127.0.0.1/160303/徐峥/后台/提交.php",
			type:"get",
			data:{
				"type": "1" ,
				"name":$("#qianming_name").val(),
				"phone":$("#qianming_phone").val()
			},
			success:function(data){
				alert($.parseJSON(data));
			}
		});
	}else{
		alert("不能为空");
	}
});